from Finance_fun import page
from Finance_fun.base.base import Base
import time

"""本页面缺少关键信息，不进行测试"""
class PageBaseInfo(Base):
    # 点击基础信息
    def base_info_link(self):
        self.base_click(page.base_info)

    def click_edit_link(self):
        self.base_click(page.edit_link)

    # 输入毕业院校
    def input_graduate_school(self, school):
        self.base_input(page.graduate_school, school)

    # 点击保存按钮
    def click_save_btn(self):
        self.base_click(page.click_save_btn)

    # 点击登录链接
    def page_click_login_link(self):
        self.base_click(page.login_link)

    # 输入登录手机号
    def page_input_login_phone(self, phone):
        self.base_input(page.login_phone, phone)

    # 输入登录密码
    def page_input_login_password(self, password):
        self.base_input(page.login_password, password)

    # 点击登录按钮
    def page_click_login_btn(self):
        self.base_click(page.login_btn)

    # 集成登录操作
    def page_login(self, phone, password):
        self.page_input_login_phone(phone)
        self.page_input_login_password(password)
        self.page_click_login_btn()
        time.sleep(1)